package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.common.core.util.ServletUtils;
import com.techsoul.module.pms.enmus.WmsOutStatusEnum;
import com.techsoul.module.pms.pojo.entity.TWmsDeliveryPickupPlan;
import com.techsoul.module.pms.pojo.entity.TbWmsLocation;
import com.techsoul.module.pms.pojo.param.TWmsDeliveryPickupPlanSaveParam;
import com.techsoul.module.pms.pojo.param.TWmsReciptIntoLocPlanSaveParam;
import com.techsoul.module.pms.pojo.param.TWmsReciptIntoLocPlanSearchParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialDeliveryLineSearchParam;
import com.techsoul.module.pms.pojo.vo.TWmsReciptIntoLocPlanVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialDeliveryLineVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialReceiptLineVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 上架计划 Service接口
 * 
 * @author liuen
 * @date 2023-03-28
 */
public interface ITWmsReciptIntoLocPlanService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TWmsReciptIntoLocPlanSaveParam params);
    String putInLoc(String locationNo,String containerNo,String lotNo, String [] ids);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TWmsReciptIntoLocPlanSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    TWmsReciptIntoLocPlanVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TWmsReciptIntoLocPlanVo> findAll(TWmsReciptIntoLocPlanSearchParam params);

    String handlePublish() ;
    String genInLocPlan() ;
    int getInLocJob(String id);
    String genInLocPlanBySelectItem(TWmsReciptIntoLocPlanSaveParam params, String [] ids);

    String genInLocPlanBySelect(TWmsReciptIntoLocPlanSaveParam params, String [] ids);
    List<TbWmsLocation>  findBestFitLocation(TbWmsMaterialReceiptLineVo tbWmsMaterialReceiptLineVo);
    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TWmsReciptIntoLocPlanVo> findAll(TWmsReciptIntoLocPlanSearchParam params, Integer current, Integer pageSize);

}
